package org.example;

public class SetTemperatureCommand extends AirConditionerCommand {
    public int temperature;

    public SetTemperatureCommand(AirConditioner airConditioner, int temperature) {
        super(airConditioner);
        this.temperature = temperature;
    }

    @Override
    public void execute() {
        getAirConditioner().setTemperature(temperature);
    }
}